
export default function user(user = {
    loading: true,
    data: {}
}, action) {
    switch (action.type) {
        case "user_loading":
            return {
                loading: true,
                data: {}
            }
        case "user_loaded":
            return {
                loading: false,
                data: action.data
            }
        default:
            break;
    }
    return user;
}
